{extend name="public/base" /} {block name="title"}
<title>{:config('web.site_name')}</title>
<meta name="keywords" content="{:config('web.site_keywords')}">
<meta name="description" content="{:config('web.site_description')}"> {__block__}{/block} {block name="content"}
<div class="col-sm-8">
    <div class="ibox">
        <div class="ibox-content" id="note">
            <h3>网站公告:</h3>
            <p>{$other_info.notification|default='欢迎访问本站'}</p>
        </div>
    </div>
    {foreach $article_list as $article}
    <div class="ibox">
        <div class="ibox-content">
            <a href="{:url('index/index/article',['id'=>$article['id']])}" class="btn-link">
                <h2>
                    {eq name="article.is_original" value="1"}[原创]{/eq}{$article.title}
                </h2>
            </a>
            <div class="small m-b-xs">
                <strong>{$article.author}</strong>&nbsp;&nbsp;<span class="text-muted"><i class="fa fa-clock-o"></i>最后更新于&nbsp;{$article.update_time}</span>
            </div>
            <p>
                {$article.description}
            </p>
            <div class="row">
                <div class="col-md-6">
                    <h5>标签：</h5>
                    {$article.tid|getTag}
                </div>
                <div class="col-md-6">
                    <div class="small text-right">
                        <h5>状态：</h5>
                        <div> <i class="fa fa-comments-o"> </i> {$article.id|getCommentsNum} 评论 </div>
                        <i class="fa fa-eye"> </i> {$article.visits} 浏览
                    </div>
                </div>
            </div>
            <div class="hr-line-dashed"></div>
            <div class="row">
                <div class="col-md-2 col-md-offset-4 pull-right">
                    <a href="{:url('index/index/article',['id'=>$article['id']])}" class="btn btn-primary tag"><i class="fa fa-eye"></i> 阅读全文</a>
                </div>
            </div>
        </div>
    </div>
    {/foreach}
    <div class="text-center">{$article_list->render()}</div>
</div>
{/block} {block name="script"}{__block__}{/block}